package com.woniuxy.meal.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


@Data
@ApiModel("新增菜品类型参数对象")
public class AddFoodTypeForm {
    @NotNull
    @ApiModelProperty("类型名称")
    private String typeName;

    @Min(0)
    @NotNull
    @ApiModelProperty("父ID,0就代表没有")
    private Long parentId;


    @ApiModelProperty("是否是叶子节点 1是 0否")
    private Integer typeSelf;

}
